<script type="text/javascript">
  var num = '1234';
  console.log(num * 2)
  console.log('-------------------');
  var num = '1234abcd';
  console.log(num * 2)
  console.log('-------------------');
  var num = parseInt('2121abcd');
  console.log(num * 2)
  console.log('-------------------');
  var num = parseFloat('3232abcd');
  console.log(num * 2)
  console.log('-------------------');

  console.log(100 / 3)
  console.log('-------------------');

  var price = 100 / 3;
  console.log(price.toFixed(2));
  console.log('-------------------');

  var num = 1234;
  console.log(num.toString());

  var str = 'Hello World';
  console.log(str.length);
  console.log('-------------------');


  var str = 'Hello World and o';
  console.log(str.replace('o','a'));
  console.log('-------------------');

  var str = 'Hello World and o';
  console.log(str.replace(/o/g,'a'));
  console.log('-------------------');
</script>
